package com.invengo.testrfid.di.module;

import com.jess.arms.di.scope.ActivityScope;

import dagger.Module;
import dagger.Provides;

import com.invengo.testrfid.mvp.contract.UploadDetailContract;
import com.invengo.testrfid.mvp.model.UploadDetailModel;


@Module
public class UploadDetailModule {
    private UploadDetailContract.View view;

    /**
     * 构建UploadDetailModule时,将View的实现类传进来,这样就可以提供View的实现类给presenter
     *
     * @param view
     */
    public UploadDetailModule(UploadDetailContract.View view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    UploadDetailContract.View provideUploadDetailView() {
        return this.view;
    }

    @ActivityScope
    @Provides
    UploadDetailContract.Model provideUploadDetailModel(UploadDetailModel model) {
        return model;
    }
}